import request from "@/util/axios";

export const update = (data) =>
    request({
        url: "/api/user/updateInfo",
        method: "post",
        data: data
    })

export const currentUser = () =>
    request({
        url: "/api/user/current",
        method: "get"
    })

export const changePass = (data) =>
    request({
        url: "/api/user/changePass",
        method: "post",
        data: data
    })